import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';

class IntegralAddressEditState implements Cloneable<IntegralAddressEditState> {
  int indexLb;
  bool valueSwitch;
  TextEditingController nameController;
  TextEditingController phoneController;
  TextEditingController addressController;
  String name;
  String phone;
  String area;
  String address;
  String title;

  @override
  IntegralAddressEditState clone() {
    return IntegralAddressEditState()
      ..indexLb = indexLb
      ..valueSwitch = valueSwitch
      ..nameController = nameController
      ..phoneController = phoneController
      ..name = name
      ..phone = phone
      ..area = area
      ..address = address
      ..title = title

    ;
  }
}

IntegralAddressEditState initState(Map<String, dynamic> args) {
  return IntegralAddressEditState()
    ..indexLb = 5
    ..valueSwitch = false
    ..nameController = TextEditingController(text: '')
    ..phoneController = TextEditingController(text: '')
    ..addressController = TextEditingController(text: '')
    ..name = ''
    ..phone = ''
    ..area = ''
    ..address = ''
    ..title = args['title']
  ;
}
